<?php

namespace common\models\active;

use common\models\BaseModel;

/**
 * Desc 优惠券活动模型
 */
class ActiveCouponReceiveModel extends BaseModel
{
    //未绑定
    const STATE_INI = 1;
    //已使用
    const STATE_USE = 2;
    //已作废,已过期
    const STATE_CANCEL = 3;

    // 状态
    public static $state = [
        self::STATE_INI => '未使用',
        self::STATE_USE => '已使用',
        self::STATE_CANCEL => '已作废',
    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%active_coupon_receive}}';
    }
}
